home *** CD-ROM | disk | FTP | other *** search
-
-
- |From: netmail!paulw@world.std.com (Insitu Inc.)
- |
- |Can someone help me, I'm sure there's a simple solution to this behaviour.
- |
- |When I build my winsock application I link in the winsock.lib file. When
- the
- |application starts, if it cannot find a winsock.dll anywhere in the path
- then
- |it bombs out with a system modal "Cannot find WINSOCK.DLL" and the
- |application never
- |starts. This message occurs before my applcaition starts and reaches the
- point
- |where I call WSAStartUp to test for a valid WINSOCK.DL
-
- if you link with winsock.lib, then your application is statically linking
- with winsock.dll, as opposed to dynamically linking. when you statically
- link with a DLL, the loader will require that the DLL be present when your
- application starts. if the DLL is unavailable, the loader will prevent the
- application from starting.
-
- |If none is found I handle that error correctly, but of course I can't test
- |this since the app
- |never starts.
- |
- |I have tried the following to track down what's occurring
- |
- |1./ I break just before the first winsock call I ever make (WSAStartUp)
- |2./ I try and load the DLL directly using loadlibrary to see if that fails
-
- since you link with winsock.lib, this LoadLibrary is redundant and doesn't
- actually do anything. if you want to dynamically link with winsock.dll,
- don't link with winsock.lib but rather do this LoadLibrary() then use
- GetProcAddress() to get the function addresses of the winsock routines into
- variables in your application.
-
- |3./ Break at the very start of my program
- |
- |None of these work if there is NO winsock.dll anywhere in the search path
- |
- |I suspect some startup code has been linked into my app and it is that
- which
- |is failing. I have tried several winsock.lib's. They are all 4096 bytes
- long
- |and vary in date.
- |
- |Has anyone seen this?
- |Has anyone fixed this?
- |Who actually controls the winsock.lib
- |Is there source code for it?
-
- winsock.lib is just a DLL import library created with implib.exe (or
- something similiar) from a winsock.def file. so the "source code" for
- winsock.lib is really just the winsock.def listed in the back of the winsock
- spec.
-
- davidtr@microsoft.com
- From news@bigblue.oit.unc.edu Fri Mar 4 22:01:25 1994
- Received: from bigblue.oit.unc.edu by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.07) with SMTP
- id AA20526; Fri, 4 Mar 1994 17:28:01 -0500
- Received: by bigblue.oit.unc.edu (AIX 3.2/UCB 5.64/4.03)
- id AA13976; Fri, 4 Mar 1994 17:04:26 -0500
- Received: from GATEWAY by bigblue with netnews
- for winsock@sunsite.unc.edu (winsock@sunsite.unc.edu)
- To: winsock@sunsite.unc.edu
- Date: 4 Mar 1994 22:01:25 GMT
- From: niklas@heat.kth.se (Niklas Agren)
- Message-Id: <2l8b3l$rt@news.kth.se>
- Organization: Royal Institute of Technology, Stockholm, Sweden
- Sender: ses
- References: <2l7036$cqf@ugle.unit.no>, <2l76np$p56@news.kth.se>, <2l7c85$hk5@lastactionhero.rs.itd.umich.edu>
- Subject: Re: WinQVT/Net - Picking on details!
-
- In article <2l7c85$hk5@lastactionhero.rs.itd.umich.edu>, shphan@umich.edu (S Phan) says:
- >
- >In article <2l76np$p56@news.kth.se>, niklas@heat.kth.se (Niklas Agren) says:
- >>
- >>
- >>A personal and maybe controversial tip:
- >>Use WinVN 0.82 instead. IMHO, it is a newsreader superior to WinQVTNEt.
- >>I use WinQVTNET for ftp and telnet only.
- >>
- >>/Niklas
- >
- >You don't even need it for ftp or telnet. Use ws_ftp and trmptel instead, both of
- >which are superior to qvtnet. WS_FTP can be obtained from the cica site, and
- >trmptel from ftp.utas.edu.au.
- >
- >Qvtnet is just too buggy - something is always wrong with each new version that
- >came out, including 3.97.
-
- Thanks!!!
- I can't believe how WS_FTP has passed me by. It is indeed a sharper
- tool that Qvtnet-ftp.
- /Niklas
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-